package com.example.hello.pojo;

import lombok.Data;
import java.util.Date;

@Data
public class CreditLog {
    private Long    id;
    private Long    userId;
    private Integer change;       // 本次变动（正为增，负为减）
    private String  reason;       // on_time | overdue | weekly
    private Long    relatedId;    // 关联 borrow 记录ID 或 null
    private Integer    creditBefore; // 变动前信誉度
    private Integer    creditAfter;  // 变动后信誉度
    private Date    createdAt;
}